package cn.hnevc.shenhaibing;

public class SendTask {
	private String number;//快递单号
	private double goodsWeight;
	public SendTask() {
		super();
	}
	public SendTask(String number,double goodsWeight) {
		this.number=number;
		this.goodsWeight=goodsWeight;
	}
	public void sendBefore() {
		System.out.println("订单开始处理，仓库验货中。。。");
		System.out.println("货物重量："+this.getGoodsWeight()+"kg");
		System.out.println("货物检验完毕！");
		System.out.println("货物填装完毕！");
		System.out.println("运货人已通知！");
		System.out.println("快递单号："+this.getNumber());
	}
	public void send(Transportation t,GPS tool) {
		System.out.println("运货人"+t.getAdmin()+
				"正在驾驶人的编号"+t.getNumber()
				+"的"+t.getModel()+"发送的货物");
		t. transport();
//		GPS tool = null;
		String showCoordinate=tool.showCoordinate();
		System.out.println("货物当前的坐标为："+showCoordinate);
	}
	public void sendAfter(Transportation t) {
		System.out.println("货物运输任务已完成！");
		System.out.println("运货人"+t.getAdmin()+
				"所驾驶的编号为"+t.getNumber()+"的"
				+t.getModel()+"已归还");
	}
	public void setNumber(String number) {
		this.number=number;
	}
	private String getNumber() {
		// TODO Auto-generated method stub
		return number;
	}
	public void setgoodsWeight(double goodsWeight) {
		this.goodsWeight=goodsWeight;
	}
	private double getGoodsWeight() {
		// TODO Auto-generated method stub
		return goodsWeight;
	}
}
interface GPS{
	public String showCoordinate();
}
class Phone implements GPS {
	public Phone() {
		super();
	}

	@Override
	public String showCoordinate() {
		// TODO Auto-generated method stub
		String location="193.485";
		return location;
	}
}